package cn.lili.modules.promotion.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("li_green_project")
@ApiModel(value = "绿色公益项目表")
public class GreenProject extends BaseStandardEntity {
    @ApiModelProperty(value = "绿色公益项目活动标题")
    private String projectTitle;
    @ApiModelProperty(value = "绿色公益项目活动图片")
    private String projectPicture;

    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "活动结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "捐赠金额")
    private BigDecimal contributionMoney;
    @ApiModelProperty(value = "活动描述")
    private String remarks;
    @ApiModelProperty(value = "活动图文详情")
    private String contents;
    @ApiModelProperty(value = "活动状态")
    private String status;

    @TableField(exist = false)
    private String createDate;
}
